//
//  SkillModel.m
//  BasketballClub
//
//  Created by 孙鸿吉 on 16/1/6.
//  Copyright © 2016年 孙鸿吉. All rights reserved.
//

#import "SkillModel.h"
@interface SkillModel()
@property (nonatomic,strong)NSMutableArray *array;
@end
@implementation SkillModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"ID"]) {
        self.iD = [value integerValue];
    }
    
    
    
    if (self.array == nil) {
        self.array = [NSMutableArray array];
    }
    if ([key isEqualToString:@"imglink"]) {
        [self.array addObject:value];
    }
    if ([key isEqualToString:@"imglink_1"]) {
        [self.array addObject:value];
    }
    if ([key isEqualToString:@"imglink_2"]) {
        [self.array addObject:value];
    }
    if ([key isEqualToString:@"imglink_3"]) {
        [self.array addObject:value];
    }

    self.imageArray = [NSArray arrayWithArray:self.array];
        if ([key isEqualToString:@"_id"]) {
        NSDictionary *dic = value;
        self.time = dic[@"timeSecond"];
    }
}

@end
